
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../static/layui-v2.9.1/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../static/css/public.css" media="all">
    <style>
        body {
            background-color: #ffffff;
        }
    </style>
</head>
<body>
<div class="layui-form layuimini-form">

    <div>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp确认要驳回吗？</div>
    <input type="hidden" id="id" name="id" value="">
    <br>
    <br>
    <br>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">确认驳回</button>
        </div>
    </div>






</div>
<script src="../static/layui-v2.9.1/layui/layui.js" charset="utf-8"></script>
<script>
    layui.use(['form'], function () {
        var form = layui.form;
        var layer = layui.layer;
        var $ = layui.$;

        //监听提交
        form.on('submit(saveBtn)', function (data) {
            console.log("data--->>>", data);
            var jsData = data.field;
            $.ajax({
                url: "/cardNoReview",
                type: "post",
                data: jsData,
                success: function (result) {
                    if (result.code == 0) {
                        layer.alert("删除成功", {icon: 6}, function () {
                            //关闭当前frame
                            var index = parent.layer.getFrameIndex(window.name);
                            parent.layer.close(index);
                            // 可以对父窗口进行刷新
                            parent.location.reload();
                        });
                    } else {
                        layer.msg("不好意思，删除失败了...")
                    }
                }
            })

            return false;
        });
    });
</script>
</body>
</html>
